[FileRepo]
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 7 Mar 2012 22:46:47 +0000 (22:46 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 7 Mar 2012 22:46:47 +0000 (22:46 +0000)
commitcb93e4c51d414628c2313fb2d184ad61a7a7201d
treeac0c936cc32e1461379e3916746386aa16f8f22d
parent69dffda7f96f90dc91a36d8a8475d1f01f2df21d
[FileRepo]
* Made upload() explicitly check $status->successCount rather than isOk() as FileRepo::publish() gives fatal statuses where it used to only give warnings. This way, failed uploads still displace the current image DB row to oldimage rather than do nothing and have the same image row point to a new file (which can cause mismatched metadata).
* Disabled exception about invalid oi_archive_name. This makes things more broken in that when people get this an error on upload (which happens when the FS has no current file but the DB does), the new file is added as the current version in the FS but the DB is unchanged. Thus, the metadata can be mismatched.
includes/filerepo/file/LocalFile.php